home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / etc / fonts / conf.avail / 30-metric-aliases.conf < prev    next >
Extensible Markup Language  |  2008-09-18  |  6KB  |  251 lines

  1. <?xml version="1.0"?>
  2. <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  3. <fontconfig>
  4.  
  5.     <!-- Alias similar/metric-compatible families from various sources:
  6.  
  7.         PostScript fonts:
  8.             Helvetica
  9.             Times
  10.             Courier
  11.         URW fonts:
  12.             Nimbus Sans L
  13.             Nimbus Roman No9 L
  14.             Nimbus Mono L
  15.  
  16.         Microsoft fonts:
  17.             Arial
  18.             Times New Roman
  19.             Courier New
  20.         Liberation fonts:
  21.             Liberation Sans
  22.             Liberation Serif
  23.             Liberation Mono
  24.         StarOffice fonts:
  25.             Albany
  26.             Thorndale
  27.             Cumberland
  28.         AMT fonts:
  29.             Albany AMT
  30.             Thorndale AMT
  31.             Cumberland AMT
  32.  
  33.          Of these, URW fonts are design compatible with PostScrict fonts,
  34.          and the Liberation, StarOffice, and AMT ones are compatible with
  35.          Microsoft fonts.
  36.  
  37.          We want for each of them to fallback to any of these
  38.          available, but in an order preferring similar designs
  39.          first.  We do this in three steps:
  40.  
  41.         1) Alias each specific to it's generic family.
  42.            eg. Liberation Sans to Arial
  43.  
  44.         2) Weak alias each generic to the other generic of its family.
  45.            eg. Arial to Helvetica
  46.  
  47.         3) Alias each generic to its specifics.
  48.            eg. Arial to Liberation Sans, Albany, and Albany AMT
  49.  
  50.                    However, the AMT fonts are quite ugly and do not
  51.                    render well on-screen, so we avoid matching them if
  52.                    the application said `anymetrics'; in that case, a
  53.                    more generic font with different metrics but better
  54.                    appearance will be used.
  55.     -->
  56.  
  57. <!-- Map specifics to generics -->
  58.  
  59.     <!-- PostScript -->
  60.         <alias binding="same">
  61.       <family>Nimbus Sans L</family>
  62.       <default>
  63.       <family>Helvetica</family>
  64.       </default>
  65.     </alias>
  66.  
  67.         <alias binding="same">
  68.       <family>Nimbus Roman No9 L</family>
  69.       <default>
  70.       <family>Times</family>
  71.       </default>
  72.     </alias>
  73.  
  74.         <alias binding="same">
  75.       <family>Nimbus Mono L</family>
  76.       <default>
  77.       <family>Courier</family>
  78.       </default>
  79.     </alias>
  80.  
  81.  
  82.     <!-- Microsoft -->
  83.         <alias binding="same">
  84.           <family>Liberation Sans</family>
  85.       <family>Albany</family>
  86.       <family>Albany AMT</family>
  87.       <default>
  88.       <family>Arial</family>
  89.       </default>
  90.     </alias>
  91.  
  92.         <alias binding="same">
  93.           <family>Liberation Serif</family>
  94.       <family>Thorndale</family>
  95.       <family>Thorndale AMT</family>
  96.       <default>
  97.       <family>Times New Roman</family>
  98.       </default>
  99.     </alias>
  100.  
  101.         <alias binding="same">
  102.           <family>Liberation Mono</family>
  103.       <family>Cumberland</family>
  104.       <family>Cumberland AMT</family>
  105.       <default>
  106.       <family>Courier New</family>
  107.       </default>
  108.     </alias>
  109.  
  110.  
  111.  
  112. <!-- Accept the other group as fallback -->
  113.  
  114.  
  115.     <!-- PostScript -->
  116.         <alias>
  117.       <family>Helvetica</family>
  118.       <default>
  119.       <family>Arial</family>
  120.       </default>
  121.     </alias>
  122.  
  123.         <alias>
  124.       <family>Times</family>
  125.       <default>
  126.       <family>Times New Roman</family>
  127.       </default>
  128.     </alias>
  129.  
  130.         <alias>
  131.       <family>Courier</family>
  132.       <default>
  133.       <family>Courier New</family>
  134.       </default>
  135.     </alias>
  136.  
  137.  
  138.     <!-- Microsoft -->
  139.         <alias>
  140.       <family>Arial</family>
  141.       <default>
  142.       <family>Helvetica</family>
  143.       </default>
  144.     </alias>
  145.  
  146.         <alias>
  147.       <family>Times New Roman</family>
  148.       <default>
  149.       <family>Times</family>
  150.       </default>
  151.     </alias>
  152.  
  153.         <alias>
  154.       <family>Courier New</family>
  155.       <default>
  156.       <family>Courier</family>
  157.       </default>
  158.     </alias>
  159.  
  160.  
  161.  
  162. <!-- Map generics to specifics -->
  163.  
  164.  
  165.     <!-- PostScript -->
  166.         <alias binding="same">
  167.       <family>Helvetica</family>
  168.       <accept>
  169.       <family>Nimbus Sans L</family>
  170.       </accept>
  171.     </alias>
  172.  
  173.         <alias binding="same">
  174.       <family>Times</family>
  175.       <accept>
  176.       <family>Nimbus Roman No9 L</family>
  177.       </accept>
  178.     </alias>
  179.  
  180.         <alias binding="same">
  181.       <family>Courier</family>
  182.       <accept>
  183.       <family>Nimbus Mono L</family>
  184.       </accept>
  185.     </alias>
  186.  
  187.  
  188.     <!-- Microsoft -->
  189.         <alias binding="same">
  190.       <family>Arial</family>
  191.       <accept>
  192.           <family>Liberation Sans</family>
  193.       <family>Albany</family>
  194.       <!-- <family>Albany AMT</family> -->
  195.       </accept>
  196.     </alias>
  197.  
  198.         <alias binding="same">
  199.       <family>Times New Roman</family>
  200.       <accept>
  201.           <family>Liberation Serif</family>
  202.       <family>Thorndale</family>
  203.       <!-- <family>Thorndale AMT</family> -->
  204.       </accept>
  205.     </alias>
  206.  
  207.         <alias binding="same">
  208.       <family>Courier New</family>
  209.       <accept>
  210.           <family>Liberation Mono</family>
  211.       <family>Cumberland</family>
  212.       <!-- <family>Cumberland AMT</family> -->
  213.       </accept>
  214.     </alias>
  215.  
  216.            <match target="pattern">
  217.           <test name="family">
  218.             <string>Times New Roman</string>
  219.           </test>
  220.           <test name="anymetrics" qual="all" compare="not_eq">
  221.             <bool>true</bool>
  222.           </test>
  223.           <edit name="family" mode="append">
  224.             <string>Thorndale AMT</string>
  225.           </edit>
  226.          </match>
  227.            <match target="pattern">
  228.           <test name="family">
  229.             <string>Arial</string>
  230.           </test>
  231.           <test name="anymetrics" qual="all" compare="not_eq">
  232.             <bool>true</bool>
  233.           </test>
  234.           <edit name="family" mode="append">
  235.             <string>Albany AMT</string>
  236.           </edit>
  237.          </match>
  238.            <match target="pattern">
  239.           <test name="family">
  240.             <string>Courier New</string>
  241.           </test>
  242.           <test name="anymetrics" qual="all" compare="not_eq">
  243.             <bool>true</bool>
  244.           </test>
  245.           <edit name="family" mode="append">
  246.             <string>Cumberland AMT</string>
  247.           </edit>
  248.          </match>
  249.  
  250. </fontconfig>
  251.